package com.wzh.glsc.order.feign;

import com.wzh.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author xiaoming
 * @PackageName:com.wzh.glsc.order.feign
 * @ClassName:@{NAME}
 * @Description:
 * @date:@{DATE}@{TIME}
 */
@FeignClient("glsc-ware")
public interface WareServiceFeign {

    @RequestMapping("/ware/waresku/hasstock")
    public R hasstock(@RequestParam List<Long> skuIdList);

    @RequestMapping("ware/wareinfo/fare/{addrId}")
    @ResponseBody
    public R fare(@PathVariable("addrId") Long addrId);

}
